package com.wsl.tibet_consume.service;


import com.wsl.pojo.Tb_brand;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(name = "wangguan", path = "/brand/")
public interface Tb_brandServices {


    //查询品牌的所有
    @RequestMapping("/findall")
    public List<Tb_brand> findallbrand();

    //增加品牌
    @RequestMapping("/inter")
    public void interdbrand(@RequestBody Tb_brand tb_brand);

    //品牌的删除
    @RequestMapping("/delete/{id}")
    public void deletebrand(@PathVariable("id") Integer id);

    //品牌的修改
    @RequestMapping("/update")
    public void update(@RequestBody Tb_brand tb_brand);


}
